Images 路 Bootstrap v5.3 您所在的位置:网站首页 i5 11320h可以玩什么游戏 Images 路 Bootstrap v5.3

Images 路 Bootstrap v5.3

2024-02-06 14:38| 来源: 网络整理| 查看: 265

View on GitHub Images

Documentation and examples for opting images into responsive behavior (so they never become wider than their parent) and add lightweight styles to them鈥攁ll via classes.

On this page Responsive images

Images in Bootstrap are made responsive with .img-fluid. This applies max-width: 100%; and height: auto; to the image so that it scales with the parent width.

PlaceholderResponsive image html Image thumbnails

In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance.

A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera200x200 html Aligning images

Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.

Placeholder200x200 Placeholder200x200 html Placeholder200x200 html Placeholder200x200 html Picture

If you are using the element to specify multiple elements for a specific , make sure to add the .img-* classes to the and not to the tag.

CSS Sass variables

Variables are available for image thumbnails.

scss/_variables.scss $thumbnail-padding: .25rem; $thumbnail-bg: var(--#{$prefix}body-bg); $thumbnail-border-width: var(--#{$prefix}border-width); $thumbnail-border-color: var(--#{$prefix}border-color); $thumbnail-border-radius: var(--#{$prefix}border-radius); $thumbnail-box-shadow: var(--#{$prefix}box-shadow-sm);


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有